/*! \file BaseConfig.cpp
 *	\brief 
 *
 *	created:	2009/11/10
 *	created:	10:11:2009   18:05
 *	filename: 	c:\src\main\libs\config\BaseConfig.cpp
 *	file path:	c:\src\main\libs\config
 *	file base:	BaseConfig
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */
 
#include "StdAfx.h"
#include "BaseConfig.h"

namespace tt{
namespace config{

BaseConfig::BaseConfig(void)
{
}

BaseConfig::~BaseConfig(void)
{
}

void BaseConfig::setInt( const String& key, Int value )
{
	onSetInt(key, value);
}

void BaseConfig::setUInt( const String& key, UInt value )
{
	onSetUInt( key, value );
}

Int BaseConfig::getInt( const String& key, Int default_value/* = 0*/ )
{
	return onGetInt(key, default_value);
}

UInt BaseConfig::getUInt( const String& key, UInt default_value/* = 0*/ )
{
	return onGetUInt(key, default_value);
}

void BaseConfig::setString( const String& key, const String& value )
{
	onSetString(key, value);
}

String BaseConfig::getString( const String& key )
{
	return onGetString(key);
}

const String& BaseConfig::getString( const String& key, const String& default_value )
{
	return onGetString(key, default_value);
}

void BaseConfig::setBool( const String& key, bool value )
{
	onSetBool(key, value);
}

bool BaseConfig::getBool( const String& key, bool default_value/* = false*/ )
{
	return onGetBool(key, default_value);
}

} //namespace config
} //namespace tt

